/*
 * ps_error.h
 *
 *  Created on: 2011-4-13
 *      Author: chenl
 */

#ifndef PS_ERROR_H_
#define PS_ERROR_H_


/***********************************************
 * 	error code:	E_PS_MISCONFIGED
 * 	specify:	配置錯誤
 * */
#define E_PS_MISCONFIGED			0x80010001

/***********************************************
 * 	error code:	E_PS_INIT_PROCESSMGT_FAIL
 * 	specify:	進程管理容器初始化失敗
 * */
#define E_PS_INIT_PROCESSMGT_FAIL	0x80010002

/***********************************************
 * 	error code:	E_PS_INIT_RUNQUEUE_FAIL
 * 	specify:	runqueue初始化失敗
 * */
#define E_PS_INIT_RUNQUEUE_FAIL		0x80010002
/***********************************************
 * 	error code:	E_PS_INIT_WAITQUEUE_FAIL
 * 	specify:	waitqueue初始化失敗
 * */
#define E_PS_INIT_WAITQUEUE_FAIL	0x80010003
/***********************************************
 * 	error code:	E_PS_INIT_HASHLIST_FAIL
 * 	specify:	hastlist初始化失敗
 * */
#define E_PS_INIT_HASHLIST_FAIL		0x80010004

/***********************************************
 * 	error code:	E_PS_INIT_SCHED_FAIL
 * 	specify:	進程調度器初始化失敗
 * */
#define E_PS_INIT_SCHED_FAIL		0x80010005

// error define for CProcessmgt*
/***********************************************
 * 	error code:	E_PS_INSERTQUEUEFAIL
 * 	specify:	插入隊列失敗
 * */
#define E_PS_INSERTQUEUEFAIL		0x80020001

/***********************************************
 * 	error code:	E_PS_INSERTRUNQUEUEFAIL
 * 	specify:	插入runqueue失敗
 * */
#define E_PS_INSERTRUNQUEUEFAIL		0x80020002

/***********************************************
 * 	error code:	E_PS_INSERTWAITQUEUEFAIL
 * 	specify:	插入waitqueue失敗
 * */
#define E_PS_INSERTWAITQUEUEFAIL	0x80020003

/***********************************************
 * 	error code:	E_PS_INSERTHASHLISTFAIL
 * 	specify:	插入hashlist失敗
 * */
#define E_PS_INSERTHASHLISTFAIL		0x80020004
/***********************************************
 * 	error code:	E_PS_PIDNOTFOUND
 * 	specify:	沒有找到pid
 * */
#define E_PS_PIDNOTFOUND		0x80040001
/***********************************************
 * 	error code:	E_PS_TASKNOTFOUND
 * 	specify:	沒有找到PCB
 * */
#define E_PS_TASKNOTFOUND			0x80040002
/***********************************************
 * 	error code:	E_PS_DELETETASKFAIL
 * 	specify:	刪除PCB失敗
 * */
#define E_PS_DELETETASKFAIL			0x80040003
/***********************************************
 * 	error code:	E_PS_HASHLIST_CLOBBERED
 * 	specify:	哈希表損壞
 * */
#define E_PS_HASHLIST_CLOBBERED		0x80020005
/***********************************************
 * 	error code:	E_PS_INIT_DRAWER_FAIL
 * 	specify:	初始化GUI失敗
 * */
#define E_PS_INIT_DRAWER_FAIL		0x80010006

/***********************************************
 * 	error code:	E_PS_INVALID_TASKPRIO
 * 	specify:	非法priority
 * */
#define E_PS_INVALID_TASKPRIO		0x80040004

/***********************************************
 * 	error code:	E_PS_CREATE_MONITOR_FAIL
 * 	specify:	創建監視器失敗
 * */
#define E_PS_CREATE_MONITOR_FAIL	0x80050002

/***********************************************
 * 	error code:	E_PS_INIT_MONITOR_FAIL
 * 	specify:	初始化監視器失敗
 * */
#define E_PS_INIT_MONITOR_FAIL		0x80050003

/***********************************************
 * 	error code:	E_PS_CONSOLE_TOOHIGH
 * 	specify:	控制台過高
 * */
#define E_PS_CONSOLE_TOOHIGH		0x80050004
/***********************************************
 * 	error code:	E_PS_CONSOLE_TOOHIGH
 * 	specify:	控制台過寬
 * */
#define E_PS_CONSOLE_TOOWIDE		0x80050005




#endif /* PS_ERROR_H_ */
